package ms.db.mysql;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

@Validated
public class MySqlProperties {
    private String dialect;
    private Boolean show_sql;
    private Boolean format_sql;
    private String ddlAuto;
    private String characterEncoding;
    private Boolean useUnicode;
    private String url;
    private String driverClass;
    private Boolean autocommit;
    private Integer minSize;
    private Integer maxSize;
    private Integer timeout;
    private Integer maxStatements;
    private Integer idleTestPeriod;
    private Integer acquireIncrement;
    private Boolean validate;
    private String mode;

    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDialect() {
        return dialect;
    }

    public void setDialect(String dialect) {
        this.dialect = dialect;
    }

    public Boolean getShow_sql() {
        return show_sql;
    }

    public void setShow_sql(Boolean show_sql) {
        this.show_sql = show_sql;
    }

    public Boolean getFormat_sql() {
        return format_sql;
    }

    public void setFormat_sql(Boolean format_sql) {
        this.format_sql = format_sql;
    }

    public String getDdlAuto() {
        return ddlAuto;
    }

    public void setDdlAuto(String ddlAuto) {
        this.ddlAuto = ddlAuto;
    }

    public String getCharacterEncoding() {
        return characterEncoding;
    }

    public void setCharacterEncoding(String characterEncoding) {
        this.characterEncoding = characterEncoding;
    }

    public Boolean getUseUnicode() {
        return useUnicode;
    }

    public void setUseUnicode(Boolean useUnicode) {
        this.useUnicode = useUnicode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public Boolean getAutocommit() {
        return autocommit;
    }

    public void setAutocommit(Boolean autocommit) {
        this.autocommit = autocommit;
    }

    public Integer getMinSize() {
        return minSize;
    }

    public void setMinSize(Integer minSize) {
        this.minSize = minSize;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Integer getMaxStatements() {
        return maxStatements;
    }

    public void setMaxStatements(Integer maxStatements) {
        this.maxStatements = maxStatements;
    }

    public Integer getIdleTestPeriod() {
        return idleTestPeriod;
    }

    public void setIdleTestPeriod(Integer idleTestPeriod) {
        this.idleTestPeriod = idleTestPeriod;
    }

    public Integer getAcquireIncrement() {
        return acquireIncrement;
    }

    public void setAcquireIncrement(Integer acquireIncrement) {
        this.acquireIncrement = acquireIncrement;
    }

    public Boolean getValidate() {
        return validate;
    }

    public void setValidate(Boolean validate) {
        this.validate = validate;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }
}
